cmake_minimum_required(VERSION 3.12)
project(MyProject)

# 添加选项来控制是否生成 libFFmpeg 和 mcu
option(BUILD_SOC "Build soc" OFF)
option(BUILD_SOPHON "Build libsophon" ON)

# 根据选项添加子目录
if(BUILD_LIBFFMPEG)
    add_subdirectory(soc-sdk)
endif()

if(BUILD_SOPHON)
    add_subdirectory(libsophon)
endif()